package com.lvbaoins.creditapp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author gjb
 * @since 2020-03-30
 */
public class InsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户代码(系统生成)
     */
    private String userCode;

    /**
     * 用户账号
     */
    private String account;

    /**
     * 密码（加密保存）
     */
    private String password;

    /**
     * 名称
     */
    private String name;

    /**
     * 手机号
     */
    private String tel;

    /**
     * 用户类型 1-渠道，2-代理人，3-客户
     */
    private Integer type;

    /**
     * 是否锁定
     */
    private Integer lockFlg;

    /**
     * 是否删除 0-未删除 1-已删除
     */
    private Integer delFlg;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


    private String roleId;

    private String openId;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLockFlg() {
        return lockFlg;
    }

    public void setLockFlg(Integer lockFlg) {
        this.lockFlg = lockFlg;
    }

    public Integer getDelFlg() {
        return delFlg;
    }

    public void setDelFlg(Integer delFlg) {
        this.delFlg = delFlg;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "InsUser{" +
        "id=" + id +
        ", userCode=" + userCode +
        ", account=" + account +
        ", password=" + password +
        ", name=" + name +
        ", tel=" + tel +
        ", type=" + type +
        ", lockFlg=" + lockFlg +
        ", delFlg=" + delFlg +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
